package com.acsior.hibernate.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * MarketingServiceAttribute entity. @author MyEclipse Persistence Tools
 * <b><i>powered by Belev</i></b>
 */
@Entity
@Table(name = "marketing_services_attributes")
@GeneratorKey(tableName = "marketing_services_attributes")
public class MarketingServiceAttributeVO extends HibernatePersistantIntegerIdVO {

	private static final long serialVersionUID = -6413853618330365416L;

	@Column(name = "attribute_value", nullable = false)
	private String attributeValue;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "marketing_service_id", nullable = false)
	private MarketingServiceVO marketingService;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "nom_additional_attribute_id", nullable = false)
	private NomAdditionalAttributeVO nomAdditionalAttribute;

	/** default constructor */
	public MarketingServiceAttributeVO() {
		super();
	}

	/** @return the attributeValue */
	public String getAttributeValue() {
		return this.attributeValue;
	}

	/**
	 * @return the marketingService
	 */
	public MarketingServiceVO getMarketingService() {
		return this.marketingService;
	}

	/** @return the nomAdditionalAttribute */
	public NomAdditionalAttributeVO getNomAdditionalAttribute() {
		return this.nomAdditionalAttribute;
	}

	/**
	 * @param attributeValue
	 *            the attributeValue to set
	 */
	public void setAttributeValue(String attributeValue) {
		this.attributeValue = attributeValue;
	}

	/**
	 * @param marketingService
	 *            the marketingService to set
	 */
	public void setMarketingService(MarketingServiceVO marketingService) {
		this.marketingService = marketingService;
	}

	/**
	 * @param nomAdditionalAttribute
	 *            the nomAdditionalAttribute to set
	 */
	public void setNomAdditionalAttribute(NomAdditionalAttributeVO nomAdditionalAttribute) {
		this.nomAdditionalAttribute = nomAdditionalAttribute;
	}
}